using UnityEngine;
using System.Collections;
using System;
using System.Runtime.InteropServices;   

public class btRigidBody : MonoBehaviour {
	
	[DllImport ("__Internal")] public static extern void createRigidBody(float X, float Y, float Z, float rX, float rY, float rZ, float rW, float mass, float restitution, float linearDamping, float angularDamping, float friction, float linearThreshold, float angularThreshold, out uint id, uint colliderId);
	[DllImport ("__Internal")] public static extern void getOrigin(out float pX, out float pY, out float pZ, uint id);
	[DllImport ("__Internal")] public static extern void getRotation(out float rX, out float rY, out float rZ, out float rW, uint id);
	[DllImport ("__Internal")] public static extern void traceLog(out float d1, out float d2, out float d3);
	
	//private float X, Y, Z;
	//private float rX, rY, rZ, rW;
	
	/*public void TransormUpdate () 
	{
		getPosition(out X, out Y, out Z, id);
		transform.position = new Vector3(X,Y,Z);
		getRotation(out rX, out rY, out rZ, out rW, id);
		transform.rotation = new Quaternion(rX,rY,rZ,rW);
	}*/

}
